import { createSSRApp } from "vue";
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate' //状态持久化
import uviewPlus from 'uview-plus'

import App from "./App.vue";

const pinia = createPinia();
pinia.use(piniaPluginPersistedstate)

export function createApp() {
	const app = createSSRApp(App);
	app.use(pinia);
	app.use(uviewPlus);
	return {
		app,
	};
}